package com.hctforgreen.greenservice.model;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * 
 * @author denghb
 * 
 */
public class AssignLoginEntity extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 0x1L;

	public String JsonCode;
	public String JsonMessage;
	public String Result;

	public static AssignLoginEntity parse(JSONObject jsonObject)
			throws JSONException {
		AssignLoginEntity assignLoginEntity = new AssignLoginEntity();
		if (jsonObject == null) {
			return assignLoginEntity;
		}
		if (jsonObject.has("JsonCode")) {
			assignLoginEntity.JsonCode = jsonObject.getString("JsonCode");
		}
		if (jsonObject.has("JsonMessage")) {
			assignLoginEntity.JsonMessage = jsonObject.getString("JsonMessage");
		}
		if (jsonObject.has("Result")) {
			assignLoginEntity.Result = jsonObject.getString("Result");
		}
		return assignLoginEntity;

	}
}
